package wml.clipstore.storage;

import java.io.Serializable;
import java.util.Collection;

import wml.clipstore.base.Entity;

public class Storage {
	
	public <T extends Entity> T create(Class<T> clazz) throws InstantiationException, IllegalAccessException{
		T entity = clazz.newInstance();
		
		return entity;
	}
	
	public <T extends Entity> T save(T entity){		
		return null;
	}
	
	public <T extends Entity> T save(Collection<T> entities){
		return null;
	}
	
	public <T extends Entity> T get(Class<T> clazz, Serializable id){
		return null;
	}
	
	public <T extends Entity> Collection<T> getAll(Class<T> clazz){
		return null;
	}
}
